package org.wat.wcy.isi.mmazur.bp.io.model.transport;

import java.util.ArrayList;
import java.util.List;

import org.wat.wcy.isi.mmazur.bp.io.model.Node;
import org.wat.wcy.isi.mmazur.bp.io.model.Transition;

public class BusinessProcessMatrix {
	
	private List<Node> nodesList;
	private Transition [][]nodesMatrix;
	
	public BusinessProcessMatrix(List<Node> nodesList, Transition [][]nodesMatrix) {
		this.nodesList = new ArrayList<Node>();
		this.nodesList.addAll(nodesList);
//		int size = this.nodesList.size();
		this.nodesMatrix = nodesMatrix;
	}

	public List<Node> getNodesList() {
		return nodesList;
	}

	public Transition getNodesMatrix(int x, int y) {
		try {
			return nodesMatrix[x][y];
		} catch (ArrayIndexOutOfBoundsException e) {
			e.printStackTrace();
			return null;
		}
	}
}
